package Ctr;
import Model.*;

/**
 * Write a description of class VareCtr here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class VareCtr
{
    // instance variables - replace the example below with your own
    private VareContainer vc;
    /**
     * Constructor for objects of class VareCtr
     */
    public VareCtr()
    {
        vc = VareContainer.getInstance();
    }

    /**
     * this method finds a Vare objekt by searching on vareNr
     * 
     * @param vareNr
     * @return object of vare
     */
    public Vare findVare(int vareNr)
    {
        return vc.findVare(vareNr);
    }

    /**
     * this method removes a vare by searching on vareNr
     * 
     * @param vareNr
     * @return nothing
     */
    public void removeVare(int vareNr)
    {
        vc.removeVare(vareNr);
    }

    /**
     * this method adds a vare to the collection.
     * 
     * @param vare
     * @return nothing
     */
    public void addVare(Vare vare)
    {
        vc.addVare(vare);
    }
    //public void addVare(ArrayList vareList){}


}
